home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gMovPath, dirType
- set the searchPath to []
- if machineType() < 256 then
- set dirType to ":"
- else
- set dirType to "\"
- end if
- if the movieName contains "_" then
- if the movieName contains "." then
- set tempIntl to chars(the movieName, offset("_", the movieName), offset(".", the movieName) - 1)
- else
- set tempIntl to chars(the movieName, offset("_", the movieName), length(the movieName))
- end if
- if getNthFileNameInFolder(the pathName & "snds" & tempIntl, 1) <> EMPTY then
- append(the searchPath, the pathName & "snds" & tempIntl)
- else
- append(the searchPath, the pathName & "sounds")
- end if
- go(1, "xpleuro")
- end if
- end
-